#coding: utf8
import re
from pygeocoder import Geocoder
results = Geocoder.geocode("angels, 6, barcelona, 08001, España")
print results[0].coordinates
print "location type:  "+ str(results[0].current['geometry']['location_type'])
